package com.example.demo.activiti;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

/**
 * @author LIN
 * @date 2022-10-05 11:21
 */
public class JavaServiceDemo implements JavaDelegate {


    @Override
    public void execute(DelegateExecution execution) throws Exception {
        System.out.println("JavaServiceDemo::name="+execution.getCurrentActivityName()+",id="+execution.getCurrentActivityId());
        System.out.println("eventName="+execution.getEventName()+",id="+execution.getId());
        System.out.println(execution.getVariables());
    }
}
